← Back to issue list

Snapcraft fails in LXD container on Debian 9

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1750642
Type
issue
State
open
Author
~pat-s
Labels
Created
2018-02-20 19:38:10.988098+00:00
Updated
2018-07-17 14:57:57.964527+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

# OS information * Distribution: Debian * Distribution version: 9 `lxc info` ``` driver: lxc driver_version: 2.1.1 kernel: Linux kernel_architecture: x86_64 kernel_version: 4.9.0-5-amd64 server: lxd server_pid: 12509 server_version: "2.21" storage: btrfs storage_version: "4.4" ``` # Issue description Running `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft` results in ``` Looking up assertion ['account-key', 'public-key-sha3-384=BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul'] Looking up assertion ['snap-declaration', 'snap-name=core'] Looking up assertion ['snap-revision', 'snap-revision=4017', 'snap-id=99T7MUlRhtI3U0QFgl5mXXESAiSwt776'] Adding assertion core_4017.assert Installing /run/core_4017.snap error: cannot perform the following tasks: - Mount snap "core" (4017) ([start snap-core-4017.mount] failed with exit status 1: Job for snap-core-4017.mount failed. See "systemctl status snap-core-4017.mount" and "journalctl -xe" for details. ) Stopping local:snapcraft-rstudio The following command failed to run: 'snap install /run/core_4017.snap' exited with 1 ``` # Steps to reproduce 1. install `snapd` on Debian 9 (`sudo apt-get install snapd`) 2. Install `lxd` using `snap install lxd` 3. Add yourself to group "lxd" and logout/login 4. Clone any project that contains a `snapcraft.yaml` file, e.g. https://github.com/pat-s/rstudio 5. Run `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft` on the project root # Note This approach works fine in 16.04 and 17.10

Evaluation history

No evaluation history available.